import { request } from "../request";

export function post_comments(text,content_type,object_id) {
  return request({
    method: "post",
    url: '/api/comments/',
    // url: '/login',
    data: {
      text,
      content_type,
      object_id
    },
     withCredentials:true,
  });
}
export function get_comments(content_type,object_id) {
  return request({
    url: '/api/comments/',
    // url: '/login',
    params: {
      content_type,
      object_id
    },
     withCredentials:true,
  });
}